<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .color{
            color: #ca82ff;
        }
        .border{
            border:1px solid #ca82ff;
        }
        *html .border{ /*ie6*/
            border:1px solid #f00;
        }
        *+html .border{ /*ie7*/
            border:1px solid #6ec2ff;
        }
    </style>

    <!--[if IE 6]>
    <style>
        .color{
            color:#f00;
        }
    </style>
    <![endif]-->

    <!--[if IE 7]>
    <style>
        .color {
            color: #6ec2ff;
        }
    </style>
    <![endif]-->

    <!--[if IE 8]>
    <style>
        .color {
            color: #ffbc24;
        }
    </style>
    <![endif]-->



<body>
<div class="color border">IE css！
<p>https://blog.csdn.net/huadonggmail/article/details/8498124</p>
</div>
</body>
</html>